// dama_data

#ifndef DAMA_DATA_H
#define DAMA_DATA_H

// Condizione partita
typedef enum
{
	WhiteWin,
    BlackWin,
    InProgress,
	Disconnect
} match_state_t;

// Dati della partita
typedef struct
{
    int fplayer1;
    int fplayer2;
    match_state_t state;
    char board[9][9];
    int lastmoveX;
    int lastmoveY;
    int wpieces;
    int bpieces;
    int hasEat;
} match_t;

// Messaggio di gioco
typedef struct
{
	char playerMoving;
	int startX;
	int startY;
	int endX;
	int endY;
	int flag;
	int eat;
} move_message_t;

typedef struct
{
	int fserver;
	char player;
	char moving;
	char board[9][9];
} player_t;

#endif
